// 练习1:使用fp.add(x, y)和fp.map(f, x)创建-个能 让functor里的值增加的函数ex1

const fp = require('lodash/fp');
const { MayBe, Container } = require('./support');

let maybe = MayBe.of([5, 6, 1]);

let ex1 = y => maybe.map(fp.map(fp.add(y)))._value;

console.log(ex1(3));